package 用类模拟枚举;

public abstract class Week3 {
	private String name;

	private Week3(String atr) {
		this.name = atr;
	}

	public String getName() {
		return name;
	}

	public static final Week3 MON = new Week3("星期一") {
		@Override
		public void show() {
			System.out.println("星期一");
		}
	};
	public static final Week3 TUE = new Week3("星期二") {
		@Override
		public void show() {
			System.out.println("星期二");
		}
	};
	public static final Week3 WED = new Week3("星期三") {
		@Override
		public void show() {
			System.out.println("星期三");
		}
	};

	public abstract void show();

}
